from django.db import models

class webresource(models.Model):
    web_name = models.CharField("网站名称",max_length=100)
    domain_name = models.CharField("域名",max_length=100)
    url = models.CharField("URL",max_length=100)
    port_num = models.CharField("端口号", max_length=100)
    webVPN = models.IntegerField("webVPN",choices=((0,"启用"),(-1,"不启用")), default=-1)
    authority = models.IntegerField("权限",choices=((0,"公有"),(-1,"私有")), default=-1)

    def __str__(self):
        return self.webname

    class Meta:
        verbose_name = "网站资源信息"
        verbose_name_plural = "网站资源信息"